package rudy.elevator.thread;

import rudy.elevator.ui.MainPanel;
import rudy.elevator.bean.LiftBean;

public class DownLift extends Thread{
    private MainPanel  panel;
    public DownLift(MainPanel  panel) {
        this.panel = panel;
    }
    public void run()
    {
        LiftBean lifts [] = panel.getLiftbean();
        for(int i=0;i<lifts.length;i++)
        {
            DownThread th = new DownThread(lifts[i],panel);
            th.start();
        }
    }
}
